/*

Author   : chaos

FileName : ptr_ind.cpp

Date     : 08/08/17 14:34:20

*/
#include <iostream>
using namespace std;

int main(void)
{
    int array[4] = {0,1,2,3}, *ptr;

    ptr = array;

    cout << "element \t\t\t| &ptr[i]\t| ptr[i]" << endl << endl;

    for(int i = 0; i < 4; i++ )
        cout << "array[" << i << "] ptr[" << i << "]\t|" << &ptr[i] <<"\t|" << ptr[i] << endl;

    return 0;
        return 0;
}
